package engine.entities;

public class Spatial {
	float width;
	float height;
	float x;
	float y;
	float dx;
	float dy;

	public Spatial() {
		width = 0;
		height = 0;
		x = 0;
		y = 0;
		dx = 0;
		dy = 0;
	}

	public float getWidth() {
		return this.width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public float getHeight() {
		return this.height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getX() {
		return this.x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return this.y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getSpeedX() {
		return this.dx;
	}

	public void setSpeedX(float dx) {
		this.dx = dx;
	}

	public float getSpeedY() {
		return this.dy;
	}

	public void setSpeedY(float dy) {
		this.dy = dy;
	}

	public void setPosition(float x, float y) {
		this.x = x;
		this.y = y;
	}

	public void setSpeed(float dx, float dy) {
		this.dx = dx;
		this.dy = dy;
	}

	public void addSpeedX(float dx) {
		this.dx += dx;
	}

	public void addSpeedY(float dy) {
		this.dy += dy;
	}

	public void addSpeed(float dx, float dy) {
		this.dx += dx;
		this.dy += dy;
	}
}
